
#include <stdlib.h>
#include <stdio.h>

typedef enum E : unsigned char
{
	a,
	b,
	c
}E;

typedef enum class ET : unsigned char
{
	a,
	b,
	c
}ET;

int main(int argc, char **argv)
{
	E e = E::a;
	ET et = ET::b;
	switch(e)
	{
	case E::a: printf("a\n"); break;
	case E::b: printf("b\n"); break;
	//error: could not convert ‘ET::c’ from ‘ET’ to ‘int’
	//case ET::c: printf("c\n"); break;
	case E::c: printf("c\n"); break;
	}
	
	switch(et)
	{
	case ET::a: printf("a\n"); break;
	case ET::b: printf("b\n"); break;
	case ET::c: printf("c\n"); break;
	}
	
	getchar();
	return 0;
}

